package com.company.behavioral.command_pattern.demo2;

/**
 * @ClassName Client
 * @Author tiezheng.han
 * @Date 2020/9/2 18:30
 **/
public class Client {
    public static void main(String[] args) {
        CalculatorForm form = new CalculatorForm();
        AbstractCommand command = new AddCommand();
        form.setCommand(command);
        form.compute(10);
        form.compute(5);
        form.compute(10);
        form.undo();
    }
}
